import { Controller, Get } from '@nestjs/common';
import { ApiService } from './api.service';
@Controller('api')
export class ApiController {
  constructor(private readonly apiService: ApiService) {}
  @Get('admin')
  index() {
    console.log(this.apiService.apiService());

    return { result: '我是Admin的Api接口' };
  }

  @Get('user')
  userIndex() {
    return { result: '我是User的Api接口' };
  }

  @Get('news')
  newsIndex() {
    return { result: '我是News的Api接口' };
  }
}
